package com.zmm.type.vo;

import lombok.Data;

import java.util.List;

/**
 * 类目树型结构
 * @author 900045
 * @description:
 * @name CategoryTreeNode
 * @date By 2021-07-05 15:07:44
 */
@Data
public class CategoryTreeNode {

	/**
	 * 类目主键
	 */
	private Integer	categoryId;
	/**
	 * 类目名称
	 */

	private String categoryName;

	/**
	 * 子类目集合     
	 *
	 */
	private List<CategoryTreeNode> children;
	/**
	 * 等级    
	 */
	private Integer	level;
	/**
	 * 父类id
	 */
	private Integer	parentId;

	public CategoryTreeNode(Integer categoryId, String categoryName, Integer level, Integer parentId) {
		this.categoryId = categoryId;
		this.categoryName = categoryName;
		this.level = level;
		this.parentId = parentId;
	}
}
